package com.anxinr.service;

import com.anxinr.pojo.dto.AddressDTO;
import com.anxinr.pojo.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 收货地址模块
 * @author anxinr
 */
public interface AddressService extends IService<Address> {

    /**
     * 保存收货地址
     * @param addr
     */
    void saveAddr(AddressDTO addr);

    /**
     * 设置默认收货地址
     * @param id
     */
    void defaultAddr(Long id);

    /**
     * 收货地址查询
     * @return
     */
    List<Address> queryAddress();
}
